TextlessActionWidget

constructor(    activeIcon: Identifier,     inactiveIcon: Identifier,     highlightedIcon: Identifier,     activeNarration: Text,     inactiveNarration: Text,     activeSupplier: Supplier<Boolean>,     pressAction: Consumer<TextlessActionWidget>)
constructor(    icon: Identifier,     activeNarration: Text,     inactiveNarration: Text,     activeSupplier: Supplier<Boolean>,     pressAction: Consumer<TextlessActionWidget>)


constructor(    activeIcon: Identifier,     inactiveIcon: Identifier,     highlightedIcon: Identifier,     activeNarration: Text,     inactiveNarration: Text,     activeSupplier: Supplier<Boolean>,     pressAction: Consumer<TextlessActionWidget>,     renderBackground: Boolean)

Parameters

activeIcon

Identifier - sprite id for active-but-not-hovered state

inactiveIcon

Identifier - sprite id for inactive/disabled state, controlled via activeSupplier

highlightedIcon

Identifier - sprite id for the active-and-hovered state

activeNarration

Text - the tooltip and narration for active states

inactiveNarration

Text - narration and tooltip to display if the button is inactive

activeSupplier

Supplier - supplies whether this widget should be active

pressAction

Consumer - action to take on press

renderBackground

Default false. If true, will render a standard MC button background behind your icon.